Skip to main content

toUpper

Type​

function

Summary​

Returns a string converted to all uppercase letters.

Syntax​

the toUpper of <stringToConvert>
toUpper(<stringToConvert>)

Description​

overview Use the toUpper function to change the case of a string./overview

Lowercase letters, including special characters with diacritical marks, are converted to the uppercase equivalents. All other characters, including uppercase letters, numbers, punctuation, and special characters with no upper or lower case, are left unchanged by the toUpper function.

Parameters​

NameTypeDescription

stringToConvert

string

Any string or expression that evaluates to a string.

Examples​

toUpper("AbC; dEf") -- returns "ABC; DEF"
toUpper("eclairs are VERY tasty!") -- returns "ECLAIRS ARE VERY TASTY!"

Value​

NameTypeDescription

return

The toUpper function returns a string the same length as the stringToConvert.

control structure: function

function: numToChar, toLower

glossary: return

keyword: string

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?